package com.sopaths.crawler.util;

import java.util.HashSet;
import java.util.Set;

import com.sopaths.utility.text.Encryptor;

public class RecuitmentSummaryTracker {
	private static Set<String> tracker = new HashSet<String>();

	public static boolean isTracked(String text) {
		String hash = Encryptor.SHA_256(text);
		synchronized (tracker) {
			if (tracker.contains(hash)) {
				return true;
			} else {
				tracker.add(hash);
				return false;
			}
		}
	}
}
